package com.dd.ms.auth.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/7/8 17:27
 * @Description 类功能作用说明
 */
@Data
@ApiModel(description = "用户注册请求参数")
public class RegisterReq {

    @ApiModelProperty(value = "账户名", required = true, example = "user123")
    @NotBlank(message = "账户名不能为空")
    private String account;

    @ApiModelProperty(value = "密码", required = true, example = "123!@#qwe",
            notes = "密码需满足复杂度要求：8-20位，包含大小写字母和数字（当前固定，传'qwe!@#123456即可）'")
    //@Pattern(regexp = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d@$!%*?&]{8,20}$",
    //        message = "密码必须包含大小写字母和数字，长度8-20位")
    private String password;

    @ApiModelProperty(value = "真实姓名", example = "张三")
    private String userRealName;
}
